home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher1.12 / conf.h next >
Encoding:
C/C++ Source or Header  |  1993-01-08  |  3.4 KB  |  157 lines

  1. /********************************************************************
  2.  * $Author: lindner $
  3.  * $Revision: 1.6 $
  4.  * $Date: 1993/01/08 23:04:48 $
  5.  * $Source: /home/mudhoney/GopherSrc/release1.11/RCS/conf.h,v $
  6.  * $State: Rel $
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: conf.h
  14.  * More configuration parameters.
  15.  *********************************************************************
  16.  * Revision History:
  17.  * $Log: conf.h,v $
  18.  * Revision 1.6  1993/01/08  23:04:48  lindner
  19.  * Changed TN3270_COMMAND for Multinet
  20.  *
  21.  * Revision 1.5  1992/12/31  05:32:43  lindner
  22.  * Added mods for VMS
  23.  *
  24.  * Revision 1.4  1992/12/22  21:45:26  lindner
  25.  * Fixed bug with that zcat code I just added...
  26.  *
  27.  * Revision 1.3  1992/12/21  20:27:25  lindner
  28.  * Added #ifdef to make zcat changable..
  29.  *
  30.  * Revision 1.2  1992/12/13  05:56:32  lindner
  31.  * Added options for connection time-out code in the server (mtm)
  32.  *
  33.  * Revision 1.1  1992/12/11  19:01:58  lindner
  34.  * Gopher1.1 Release
  35.  *
  36.  *********************************************************************/
  37.  
  38. /*
  39.  * Defaults for the client program
  40.  * On startup the client will contact either the gopher server
  41.  * CLIENT1_HOST or CLIENT2_HOST randomly.
  42.  *
  43.  * Set CLIENT2_PORT to 0 if you only want one root machine
  44.  */
  45.  
  46. #define CLIENT1_HOST "gopher.tc.umn.edu"
  47. #define CLIENT2_HOST "gopher2.tc.umn.edu"
  48.  
  49. #define CLIENT1_PORT 70
  50. #define CLIENT2_PORT  70
  51.  
  52.  
  53. /*
  54.  * Override some defaults for various platforms
  55.  */
  56.  
  57. #if defined(sun)
  58. #define PLAY_COMMAND "play -v 40 -"
  59. #endif
  60.  
  61. #if defined(hpux) || defined(_AUX_SOURCE) || defined(_SEQUENT_) || defined(USG)
  62. #define MAIL_COMMAND "mailx"
  63. #endif
  64.  
  65. #if defined(NeXT)
  66. #define NO_VPRINTF
  67. #define PLAY_COMMAND "play -v 40 -"
  68. #endif
  69.  
  70. #if defined(_SEQUENT_)
  71. #define PRINTER_COMMAND "lp"
  72. #endif
  73.  
  74. #if defined(VMS)
  75. #  define PRINTER_COMMAND "print"
  76. #  define PAGER_COMMAND   "type/page"
  77. #  define PLAY_COMMAND    "- none -"
  78. #  define GOPHERHELP      "sys_local:gopher.hlp"
  79. #  if defined(MULTINET)
  80. #     define TN3270_COMMAND        "telnet/tn3270"
  81. #  endif
  82. #endif
  83.  
  84.  
  85.  
  86. /*
  87.  * Now set the parameters, only if not set above... 
  88.  */
  89. #ifndef PAGER_COMMAND
  90. #define PAGER_COMMAND "more -d"
  91. #endif
  92.  
  93. #ifndef MAIL_COMMAND
  94. #define MAIL_COMMAND "mail"
  95. #endif
  96.  
  97. #ifndef TELNET_COMMAND
  98. #define TELNET_COMMAND "telnet"
  99. #endif
  100.  
  101. #ifndef TN3270_COMMAND
  102. #define TN3270_COMMAND "tn3270"
  103. #endif
  104.  
  105. #ifndef PRINTER_COMMAND
  106. #define PRINTER_COMMAND "lpr"
  107. #endif
  108.  
  109. #ifndef PLAY_COMMAND
  110. #define PLAY_COMMAND "/bin/false"
  111. #endif
  112.  
  113. #ifndef MIME_COMMAND
  114. #define MIME_COMMAND "metamail -P" 
  115. #endif
  116.  
  117. #ifndef IMAGE_COMMAND 
  118. #define IMAGE_COMMAND "xloadimage -fork"
  119. #endif
  120.  
  121. /****************** gopherd configuration ***********************/
  122.  
  123. /*
  124.  * This is the default time to cache directory entries on the server.
  125.  */
  126.  
  127. #define CACHE_TIME 180  /** Default cache time of three minutes. **/
  128.  
  129.  
  130. /*
  131.  * The load average at which to restrict connections
  132.  */
  133.  
  134. #define MAXLOAD 10.0
  135.  
  136. /*
  137.  * Return type for signal()
  138.  */
  139.  
  140. #define SIGRETTYPE void
  141.  
  142. /*
  143.  * Timeout for network reads (5 minutes)
  144.  */
  145.  
  146. #define READTIMEOUT (5 * 60)
  147.  
  148.  
  149. #define LIST            "/tmp/gftp+"            /* Temp list file prefix */
  150.  
  151. /** Where the zcat command is...  **/
  152. #if defined(M_XENIX)
  153. #define ZCATCMD         "/usr/bin/zcat"
  154. #else
  155. #define ZCATCMD         "/usr/ucb/zcat"
  156. #endif
  157.